package com.elinkway.infinitemovies.async;


import com.lvideo.http.bean.LVideoBaseBean;

/**
 * 异步任务接口类（网络任务）,只在apijiexi接口使用
 * */
public interface RequestStreamResultListener<T extends LVideoBaseBean> {

	/**
	 * 异步任务请求失败
	 * */
	public boolean onRequestFailed();

	/**
	 * 异步任务请求成功
	 * */
	public void onRequestSuccess(int updateId, T result);
	
	/**
	 * 开始请求
	 */
	public void onPreRequest();

	/**
	 * 异步任务请求失败
	 * */
	public boolean onRequestFailed(String code, String msg);

}
